.class Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;
.super Ljava/lang/Object;
.source "ImageSwitcherActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ImageSwitcherActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    .line 1199
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 1205
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$0(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/PopupWindow;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 1206
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v0, v0, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->menuWindow:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    iget-object v0, v0, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 1208
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$1(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)I

    move-result v0

    if-eq v0, v3, :cond_2

    .line 1246
    :cond_1
    :goto_0
    return-void

    .line 1210
    :cond_2
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$2(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/Button;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 1226
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$3(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$3(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "0"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$3(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "-1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 1227
    :cond_3
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    const-string v1, "\u76ee\u524d\u6ca1\u6709\u8ddf\u8d34"

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 1233
    :cond_4
    const-string v0, "\u8ddf\u8d34"

    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$4(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/Button;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 1237
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$5(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 1238
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$5(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$6(Lcom/netease/newsreader/activity/ImageSwitcherActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 1240
    :cond_5
    iget-object v0, p0, Lcom/netease/newsreader/activity/ImageSwitcherActivity$1;->this$0:Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-static {v0, v3}, Lcom/netease/newsreader/activity/ImageSwitcherActivity;->access$7(Lcom/netease/newsreader/activity/ImageSwitcherActivity;Z)V

    goto :goto_0
.end method
